<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>main</title>
<jsp:include page="../head.jsp" />
<script type="text/javascript">

	function save(){
		if(trim($("#systemName").val())==""){
			j_tip("系统名称不能为空。", 'error');
			return;
		}else if(trim($("#systemLogo").val())==""){
			j_tip("系统LOGO不能为空。", 'error');
			return;
		}else if(trim($("#adminId").val())==""){
			j_tip("超级管理员ID不能为空。", 'error');
			return;
		}else if(trim($("#pagesum").val())==""){
			j_tip("每页显示数不能为空。", 'error');
			return;
		}else if(inputNum(trim($("#adminId").val()))==null){
			j_tip("超级管理员ID名称只允许输入数字。", 'error');
			return;
		}else if(inputNum(trim($("#pagesum").val()))==null){
			j_tip("每页显示数只允许输入数字。", 'error');
			return;
		}else if(input(trim($("#remark").val()))==null){
			j_tip("备注只允许输入汉字   字母  数字 下划线。", 'error');
			return;
		}
		xbox.load("loading");	
		$("#saveForm").ajaxSubmit(function(){
	    	$("#refreshForm").submit();
	    });
	}
	function turnBack(){
		xbox.load("loading");
	   $("#refreshForm").submit();
	}

</script>

</head>
<body>
<form action="<%=path%>/sysinfo/sysinfo_modify_managerAction.action" method="post" id="saveForm">
<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#F1F1F1" style="margin-bottom:8px">
  <tr bgcolor="#FFFFFF">
    <td colspan="4"><!--<div class="info_right_tit">*<span><a style="font-size:12px; color:#999;" href="#">*</a><a style="font-size:12px; color:#999;" href="<%=path %>/default.action" target="_top">-首页</a></span></div>--></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="10%" align="right" bgcolor="#FFFFFF">系统名称：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input maxlength="25" type="text" name="systemInfo.systemName" id="systemName" value="${systemInfo.systemName}" /></td>
    <td width="10%" align="right" bgcolor="#FFFFFF">系统LOGO：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input maxlength="25" type="text" name="systemInfo.systemLogo" id="systemLogo" value="${systemInfo.systemLogo}" /></td>
  </tr>
   <tr bgcolor="#FFFFFF">
    <td width="10%" align="right" bgcolor="#FFFFFF">是否开启系统：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input name="systemInfo.openFlag" id="openFlagYes" type="radio" value="1" <c:if test="${systemInfo.openFlag eq 1}">checked="checked"</c:if>/>开启&nbsp;<input name="systemInfo.openFlag" id="openFlagNo" type="radio" value="0" <c:if test="${systemInfo.openFlag eq 0}">checked="checked"</c:if>/>关闭
    </td>
    <td width="10%" align="right" bgcolor="#FFFFFF">是否开放注册：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input name="systemInfo.regFlag" id="regFlagYes" type="radio" value="1" <c:if test="${systemInfo.regFlag eq 1}">checked="checked"</c:if>/>开启&nbsp;<input name="systemInfo.regFlag" id="regFlagNo" type="radio" value="0" <c:if test="${systemInfo.regFlag eq 0}">checked="checked"</c:if>/>关闭</td>
  </tr>
   <tr bgcolor="#FFFFFF">
    <td width="10%" align="right" bgcolor="#FFFFFF">是否开启验证码：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input name="systemInfo.loginValFlag" id="loginValFlagYes" type="radio" value="1" <c:if test="${systemInfo.loginValFlag eq 1}">checked="checked"</c:if>/>开启&nbsp;<input name="systemInfo.loginValFlag" id="loginValFlagNo" type="radio" value="0" <c:if test="${systemInfo.loginValFlag eq 0}">checked="checked"</c:if>/>关闭</td>
    <td width="10%" align="right" bgcolor="#FFFFFF">是否开启系统日志：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input name="systemInfo.openLogFlag" id="openLogFlagYes" type="radio" value="1" <c:if test="${systemInfo.openLogFlag eq 1}">checked="checked"</c:if>/>开启&nbsp;<input name="systemInfo.openLogFlag" id="openLogFlagNo" type="radio" value="0" <c:if test="${systemInfo.openLogFlag eq 0}">checked="checked"</c:if>/>关闭</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="10%" align="right" bgcolor="#FFFFFF">超级管理员ID：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input type="text" name="systemInfo.adminId" id="adminId" value="${systemInfo.adminId}" /></td>
    <td width="10%" align="right" bgcolor="#FFFFFF">每页显示数：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input type="text" name="systemInfo.pagesum" id="pagesum" value="${systemInfo.pagesum}" /></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="10%" align="right" bgcolor="#FFFFFF">系统页面风格：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF">
    <input name="systemInfo.systemStyle" id="systemStyleExt" type="radio" value="187" disabled="disabled" <c:if test="${systemInfo.systemStyle eq 187}">checked="checked"</c:if>/>MAC OS X风格&nbsp;<input name="systemInfo.systemStyle" id="systemStyleMetro" type="radio" value="186" <c:if test="${systemInfo.systemStyle eq 186}">checked="checked"</c:if>/>METRO风格</td>
  	<td width="10%" align="right" bgcolor="#FFFFFF">是否开启多角色：</td>
    <td width="40%" align="left" bgcolor="#FFFFFF"><input name="systemInfo.moreRole" id="moreRoleYes" type="radio" value="1" <c:if test="${systemInfo.moreRole eq 1}">checked="checked"</c:if>/>开启&nbsp;<input name="systemInfo.moreRole" id="moreRoleNo" type="radio" value="0" <c:if test="${systemInfo.moreRole eq 0}">checked="checked"</c:if>/>关闭</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="10%" align="right" bgcolor="#FFFFFF">备注：</td>
    <td width="90%" colspan="3" align="left" bgcolor="#FFFFFF">
    	
            
    			<textarea rows="3"  name="systemInfo.remark" id="remark">${systemInfo.remark}</textarea>
             
            </div>
          </div>
    </td>
  </tr>
  <tr align="right" bgcolor="#F1F1F1">
	<td height="36" colspan="4" align="center">
		<c:if test='${fn:contains(authorityCode,",0001,") or fn:contains(authorityCode,",0003,")}'>
		<input type='button' class="btn btn-primary" id="btnSave" onclick="save();" value='保存' />
		</c:if>
	    &nbsp;<input type='button' class="btn" onclick="turnBack();" value='返回' />
</td>
</tr>
</table>
<input type="hidden" name="systemInfo.systemId" value="${systemInfo.systemId}" />
</form>

	<form action="<%=path%>/sysinfo/sysinfo_toEdit_managerAction.action" method="post" style="display: none;" id="refreshForm" name="refreshForm">
	<input type="hidden" class="currentMenuId" name="currentMenuId" value="${currentMenuId}"/>
	</form>
	

</body>
</html>
